// pages/graduate/MySchool/MySchool.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    s_ID:0,
  },
  bfu2019exam:function(){
    console.log("ninini2019")
  },
  bfu2020exam:function(){
    console.log("ninini2020")
  },
  bfu2021exam:function(){
    console.log("ninini2021")
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  console.log("dgaiygdiau",options.s_ID)
  this.setData({
    s_ID:options.s_ID
  })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },
  bjfutm2022:function(){
    wx.cloud.downloadFile({
    fileID:'cloud://lininfo-0gj1yu9l64232834.6c69-lininfo-0gj1yu9l64232834-1308916399/北林/北林22推免 .pdf',
    success:function(res){
      const filePath=res.tempFilePath
      wx.openDocument({
        filePath: filePath,
        showMenu:true,
        success:function(res){
          console.log('打开成功')
        }
      })
    }
  })
},
  pkutm2022:function(){
    wx.cloud.downloadFile({
    fileID:'cloud://lininfo-0gj1yu9l64232834.6c69-lininfo-0gj1yu9l64232834-1308916399/北大/北大22推免.pdf',
    success:function(res){
      const filePath=res.tempFilePath
      wx.openDocument({
        filePath: filePath,
        showMenu:true,
        success:function(res){
          console.log('打开成功')
        }
      })
    }
  })
},
  scutm2022:function(){
    wx.cloud.downloadFile({
    fileID:'cloud://lininfo-0gj1yu9l64232834.6c69-lininfo-0gj1yu9l64232834-1308916399/川大/川大22推免.pdf',
    success:function(res){
      const filePath=res.tempFilePath
      wx.openDocument({
        filePath: filePath,
        showMenu:true,
        success:function(res){
          console.log('打开成功')
        }
      })
    }
  })
},
  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})